document.addEventListener('DOMContentLoaded', function() {
    var throughsbtn = document.getElementById('throughs-btn')
    throughsbtn.addEventListener('click',function(){
        fetch(
            '/images/throughs/' + throughsbtn.dataset.imageid,
            {method: 'POST',body: {}},
        ).then(response => response.json())
        .then(resp => {
            console.log(resp)
        })
    })
})